package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("ff_file_record")
public class FfFileRecord {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long fileInfoId;

    private String version;

    @JsonFormat(pattern = "yyyy-MM-dd")

    private LocalDate issueDate;

    private Integer productionCopies;

    private String productionSignature;

    private Integer qualityCopies;

    private String qualitySignature;

    private Integer engineeringCopies;

    private String engineeringSignature;

    private Integer materialControlCopies;

    private String materialControlSignature;

    private Integer researchCopies;

    private String researchSignature;

    private Integer businessCopies;

    private String businessSignature;

    private Integer photoelectricCopies;

    private String photoelectricSignature;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate recycleDate;

    private String recycler;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableLogic
    private Boolean isDeleted;
}